package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.DonationRecordDao;
import com.platform.entity.DonationRecordEntity;
import com.platform.service.DonationRecordService;

/**
 * 用户捐款记录表Service实现类
 *
 * @author czj
 * @email 729618941@qq.com
 * @date 2018-11-01 11:32:00
 */
@Service("donationRecordService")
public class DonationRecordServiceImpl implements DonationRecordService {
    @Autowired
    private DonationRecordDao donationRecordDao;

    @Override
    public DonationRecordEntity queryObject(Integer id) {
        return donationRecordDao.queryObject(id);
    }

    @Override
    public List<DonationRecordEntity> queryList(Map<String, Object> map) {
        return donationRecordDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return donationRecordDao.queryTotal(map);
    }

    @Override
    public int save(DonationRecordEntity donationRecord) {
        return donationRecordDao.save(donationRecord);
    }

    @Override
    public int update(DonationRecordEntity donationRecord) {
        return donationRecordDao.update(donationRecord);
    }

    @Override
    public int delete(Integer id) {
        return donationRecordDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[]ids) {
        return donationRecordDao.deleteBatch(ids);
    }
}
